import java.util.BitSet;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wulangaaa
 * Date: 2025-04-14
 * Time: 15:31
 */
public class Test {
    public void moveZeroes(int[] nums) {
        int dest=-1;
        int cur=0;
        while(cur<=nums.length-1){
            if(nums[cur]==0){
                cur++;
            }else{
                swap(dest+1,cur,nums);
                dest++;
                cur++;
            }
        }
    }

    public void swap(int x,int y,int[] nums){
        int tmp=nums[x];
        nums[x]=nums[y];
        nums[y]=tmp;
    }

    public static void main(String[] args) {
        BitSet bitSet=new BitSet();
        bitSet.set();

    }
/*public void add(String val){

    for(int i=0;ki<simphash.length;i++){
       int index=simplehash[i].hash(val);
        set(index)



}
public void set(index){
    elem[index] |=

public boolean contains(String val）{
  for(int i=0;ki<simphash.length;i++){
       int index=simplehash[i].hash(val)
       int ret=bitset.get(index)
       if(ret==0){
       return false;
       }

   }
   return true;

}
*/




}
